home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / AIncludes / ENET.a < prev    next >
Encoding:
Text File  |  1996-05-01  |  3.4 KB  |  129 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        ENET.a
  3. ;
  4. ;    Contains:    Ethernet Interfaces.
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Release:    Universal Interfaces 3.0d3 on Copland DR1
  8. ;
  9. ;    Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10. ;
  11. ;    Bugs?:        If you find a problem with this file, send the file and version
  12. ;                information (from above) and the problem description to:
  13. ;
  14. ;                    Internet:    apple.bugs@applelink.apple.com
  15. ;                    AppleLink:    APPLE.BUGS
  16. ;
  17. ;
  18.     IF &TYPE('__ENET__') = 'UNDEFINED' THEN
  19. __ENET__ SET 1
  20.  
  21.     IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
  22.     include 'Types.a'
  23.     ENDIF
  24.     IF &TYPE('__OSUTILS__') = 'UNDEFINED' THEN
  25.     include 'OSUtils.a'
  26.     ENDIF
  27.     IF FOR_SYSTEM7_AND_SYSTEM8_DEPRECATED THEN
  28.  
  29. ENetSetGeneral                    EQU        253                    ;Set "general" mode
  30. ENetGetInfo                        EQU        252                    ;Get info
  31. ENetRdCancel                    EQU        251                    ;Cancel read
  32. ENetRead                        EQU        250                    ;Read
  33. ENetWrite                        EQU        249                    ;Write
  34. ENetDetachPH                    EQU        248                    ;Detach protocol handler
  35. ENetAttachPH                    EQU        247                    ;Attach protocol handler
  36. ENetAddMulti                    EQU        246                    ;Add a multicast address
  37. ENetDelMulti                    EQU        245                    ;Delete a multicast address
  38. EAddrRType                        EQU        'eadr'                ;Alternate address resource type
  39.  
  40.  
  41. ; typedef EParamBlock *                    EParamBlkPtr
  42.  
  43. EParamBlock                RECORD 0
  44. qLink                     ds.l    1                ; offset: $0 (0)        ; General EParams
  45. qType                     ds.w    1                ; offset: $4 (4)        ; queue type
  46. ioTrap                     ds.w    1                ; offset: $6 (6)        ; routine trap
  47. ioCmdAddr                 ds.l    1                ; offset: $8 (8)        ; routine address
  48. ioCompletion             ds.l    1                ; offset: $C (12)        ; completion routine
  49. ioResult                 ds.w    1                ; offset: $10 (16)        ; result code
  50. ioNamePtr                 ds.l    1                ; offset: $12 (18)        ; ->filename
  51. ioVRefNum                 ds.w    1                ; offset: $16 (22)        ; volume reference or drive number
  52. ioRefNum                 ds.w    1                ; offset: $18 (24)        ; driver reference number
  53. csCode                     ds.w    1                ; offset: $1A (26)        ; Call command code
  54. eProtType                 ds.w    1                ; offset: $1C (28)        ; Ethernet protocol type
  55. ePointer                 ds.l    1                ; offset: $1E (30)        ; No support for PowerPC code
  56. eBuffSize                 ds.w    1                ; offset: $22 (34)        ; buffer size
  57. eDataSize                 ds.w    1                ; offset: $24 (36)        ; number of bytes read
  58.                          ORG 28
  59. eMultiAddr                 ds.b    6                ; offset: $1C (28)        ; Multicast Address
  60.                          ORG 38
  61. sizeof                     EQU *                    ; size:   $26 (38)
  62.                         ENDR
  63. ;
  64. ; pascal OSErr EWrite(EParamBlkPtr thePBptr, Boolean async)
  65. ;
  66.     IF GENERATINGCFM THEN
  67.         IMPORT_CFM_FUNCTION EWrite
  68.     ENDIF
  69.  
  70. ;
  71. ; pascal OSErr EAttachPH(EParamBlkPtr thePBptr, Boolean async)
  72. ;
  73.     IF GENERATINGCFM THEN
  74.         IMPORT_CFM_FUNCTION EAttachPH
  75.     ENDIF
  76.  
  77. ;
  78. ; pascal OSErr EDetachPH(EParamBlkPtr thePBptr, Boolean async)
  79. ;
  80.     IF GENERATINGCFM THEN
  81.         IMPORT_CFM_FUNCTION EDetachPH
  82.     ENDIF
  83.  
  84. ;
  85. ; pascal OSErr ERead(EParamBlkPtr thePBptr, Boolean async)
  86. ;
  87.     IF GENERATINGCFM THEN
  88.         IMPORT_CFM_FUNCTION ERead
  89.     ENDIF
  90.  
  91. ;
  92. ; pascal OSErr ERdCancel(EParamBlkPtr thePBptr, Boolean async)
  93. ;
  94.     IF GENERATINGCFM THEN
  95.         IMPORT_CFM_FUNCTION ERdCancel
  96.     ENDIF
  97.  
  98. ;
  99. ; pascal OSErr EGetInfo(EParamBlkPtr thePBptr, Boolean async)
  100. ;
  101.     IF GENERATINGCFM THEN
  102.         IMPORT_CFM_FUNCTION EGetInfo
  103.     ENDIF
  104.  
  105. ;
  106. ; pascal OSErr ESetGeneral(EParamBlkPtr thePBptr, Boolean async)
  107. ;
  108.     IF GENERATINGCFM THEN
  109.         IMPORT_CFM_FUNCTION ESetGeneral
  110.     ENDIF
  111.  
  112. ;
  113. ; pascal OSErr EAddMulti(EParamBlkPtr thePBptr, Boolean async)
  114. ;
  115.     IF GENERATINGCFM THEN
  116.         IMPORT_CFM_FUNCTION EAddMulti
  117.     ENDIF
  118.  
  119. ;
  120. ; pascal OSErr EDelMulti(EParamBlkPtr thePBptr, Boolean async)
  121. ;
  122.     IF GENERATINGCFM THEN
  123.         IMPORT_CFM_FUNCTION EDelMulti
  124.     ENDIF
  125.  
  126.     ENDIF
  127.     ENDIF ; __ENET__ 
  128.  
  129.